<?php
	class Traducteur {
		private $xml;
		
		public function __construct($lang) {
			$this->xml = new SimpleXMLELEMENT("lang/" . $lang . ".xml", NULL, TRUE);
			
		}	
		
		public function lireNode($section, $node) {
			$contenu =  $this->xml->$section->$node;
			
			if (strlen($contenu) == 0) {
				$contenu = "<i>Texte inexistant</i>";	
			}
			
			return $contenu;
		}
	}
